package com.boc.langxiang.entity.request;

import com.boc.langxiang.Constant;
import com.boc.langxiang.util.StringUtil;

/**
 * Created by Li Guoxi on 2016/6/28.
 */
public class ProductListRequest extends MapParamsRequest {
    private int page;
    private String ctype;
    private String price_id;

    @Override
    protected void putParams() {
        params.put("limit", Constant.PAGE_SIZE + "");
        params.put("page", String.valueOf(page));
        if (!StringUtil.isEmpty(ctype)) {
            params.put("ctype", ctype);
        }
        if (!StringUtil.isEmpty(price_id)) {
            params.put("price_id", price_id);
        }
    }

    public String getCtype() {
        return ctype;
    }

    public void setCtype(String ctype) {
        this.ctype = ctype;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public String getPrice_id() {
        return price_id;
    }

    public void setPrice_id(String price_id) {
        this.price_id = price_id;
    }
}
